package duotai;

// 主类 Main 用于测试
public class Main {
    public static void main(String[] args) {
        // 创建子类对象
        Person student = new Student();
        Person driver = new Driver();
        Person ironman = new Ironman();

        // 调用子类的 work 方法
        student.work(); // 输出: Studying
        driver.work();  // 输出: Driving
        ironman.work(); // 输出: Saving the world

    }
}
